#ifndef CHOOSEPANEL_H
#define CHOOSEPANEL_H

#include <QDialog>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include <QGridLayout>
class ChoosePanel : public QDialog
{
    Q_OBJECT
public:
    explicit ChoosePanel(int * input,int * num,int * storage,bool * ok,QWidget *parent = 0);

private:
    QLineEdit * numberInput;  //数字输入
    QComboBox * storageMethod;//存储方法
    QComboBox * inputMethod;//输入方法
    QPushButton * enter;//确定
    QPushButton * cancel;//取消y
    QGridLayout * layout;//布局
    int * input;
    int * num;
    int * storage;
    bool * ok;
signals:

public slots:
    void quit();//退出
    void goon();//确定
    void canEditNum();//数量输入框是否可以编辑
};

#endif // CHOOSEPANEL_H
